package lab02.Test36;

/**
 * Created by tanfei on 2017/11/9.
 */
public class Undergraduate extends Student {
    @Override
    String calGrade() {
     double avg=calAverage();
//得该生的平均成绩
     if (avg>=80&&avg<=100)
         grade="优秀";
        if (avg>=70&&avg<=90)
            grade="良好";
        if (avg>=60&&avg<=70)
            grade="一般";
        if (avg>=50&&avg<=60)
            grade="及格";
        else
            grade="不及格";
        return grade;
    }
}
